package com.renhong.springbootshiro.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.renhong.springbootshiro.domain.User;
import com.renhong.springbootshiro.mapper.UserMapper;

@Service
public class UserServiceImpl implements UserService {
	// 注入mapper接口
	@Autowired
	private UserMapper usermapper;

	@Override
	public User findByName(String name) {
		return usermapper.findByName(name);
	}

	@Override
	public User findById(Integer id) {
		return usermapper.findById(id);
	}
}
